package java02;

public class java02_8 {
    public static void main(String[] args) {
        int arr[]={1,2,3,4,5,6};
        int a=2;
System.out.println(getAnswer(a,arr));
    }
    public static boolean getAnswer(int a,int[] arr)
    {
    for(int i=0;i<arr.length;i++)
    {
        if(arr[i]==a)
        {

            return true;
        }
    }
    return false;
    }
}
